package com.hualan.controller;

import com.hualan.service.TeacherServicecui;
import com.hualan.util.R;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/teacher")
public class TeacherControllercui {
    @Autowired
    private TeacherServicecui teacherService;

    //通过id查询咨询师信息
    @GetMapping("/findTeacherById")
    public R findTeacherById(Long id){
        return R.success(teacherService.findTeacherById(id));
    }
}
